import { AnimationClip } from "cc";
import StateMachine from "./StateMachine";
import { SubStateMachine } from "./SubStateMachine";
import State from "./State";
import { DIRECTION_ENUM, DIRECTION_ORDER_ENUM, PARAMS_NAME_ENUM } from "../Enums";

const BASE_URL = 'texture/player/turnleft'

export default class DirectionSubStateMachine extends SubStateMachine {

    run() {
        const value = this.fsm.getParams(PARAMS_NAME_ENUM.DIRECTION)
        this.currentState = this.stateMachines.get(DIRECTION_ORDER_ENUM[value as number] )
    }
}
